<html>
<head>
<title>main</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="<?php echo CSS_DIR ?>/pagerNav.css" />
<link rel="stylesheet" type="text/css" href="<?php echo CSS_DIR ?>/admin.css" />
</head>
<body>
<br>
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head style="line-height:25px;"><span style="float:left">家 教 管 理</span><span style="float:right;"><input type="button" value="新增家教" onClick="window.location='<?php echo url('adminMarket', 'newFamilyEdu') ?>'" /></span></td></tr>
<tr><td class=b>
	<table class="listTb">
	  <tr class="title">
		<td width="10%">家教编号</td>
		<td width="30%">家教标题</td>
		<td width="15%">负责人</td>
		<td width="10%">发布日期</td>
		<td width="10%">截止日期</td>
		<td width="10%">家教状态</td>
		<td width="15%">操作</td>
	  </tr>
	  <tr><td colspan="9">&nbsp;</td>
	  <?php foreach( $lists as $list ) { ?>
	  <tr class="list">
		<td><?php echo $list['familyEdu_id'] ?></td>
		<td><?php echo $list['title'] ?></td>
		<td><?php echo $list['registrant'] ?></td>
		<td><?php echo $list['created'] ?></td>
		<td><?php echo $list['finish'] ?></td>
		<td><?php echo $list['charge'] ?></td>
		<td>
		<a href="<?php echo url('adminMarket', 'dispFamilyEdu', array('familyEdu_id'=>$list['familyEdu_id'])) ?>">［查看］</a>
		</td>
	  </tr>
	  <tr><td colspan="7"><hr width="99%" /></td>
	  <?php } ?>
	</table>
	<div><?php echo $pagerData ?></div>
</td>
</tr></table>
<br>
<script language="javascript">
var objs = document.getElementsByTagName("tr");
var old;
for (var i = 0;i < objs.length;i++) {
	var obj = objs[i];
	if (obj.className == "list") {
		obj.onmouseover = function() {
			old = this.style.background;
			this.style.background = "#E2E2FE";
		}
		obj.onmouseout = function() {
			this.style.background = old;
		}
	}
}
</script>
</body></html>